﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Entity.WorkflowEntity
{
    /// <summary>
    /// Elsa自带的表，记录流程定义
    /// </summary>
    [SugarTable("WORKFLOWDEFINITIONS")]
    public class WorkFlowDefinitions
    {
        /// <summary>
        /// ID;GUID
        /// </summary>
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)]
        public string Id { get; set; } = Guid.NewGuid().ToString();


        /// <summary>
        /// ID;GUID
        /// </summary>
        [SugarColumn(ColumnName = "DEFINITIONID")]
        public string DefinitionId { get; set; } = Guid.NewGuid().ToString();


        [SugarColumn(ColumnName = "NAME")]
        public string? Name { get; set; }

        [SugarColumn(ColumnName = "DISPLAYNAME")]
        public string? DisplayName { get; set; }

        [SugarColumn(ColumnName = "VERSION")]
        public int Version { get; set; }

        [SugarColumn(ColumnName = "ISPUBLISHED")]
        public bool IsPublished { get; set; }

        [SugarColumn(ColumnName = "DATA")]
        public string Data { get; set; } = string.Empty;
    }
}
